Part Number Hot Search : 
C18LF SJ108 20N60B FT500 1R00J 2SA124 GB504 GBL08
Product Description
Full Text Search
 

To Download TC9327BFG Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 TC9327BFG
TOSHIBA CMOS Digital Integrated Circuit Silicon Monolithic
TC9327BFG
DTS Microcontroller (DTS-21)
The TC9327BFG is a 4-bit CMOS microcontroller for single-chip digital tuning systems, featuring a built-in 230-MHz prescaler, PLL, and LCD drivers. The CPU has 4-bit parallel addition and subtraction instructions (e.g., AI, SI), logic operation instructions (e.g., OR, AN), composite decision and comparison instructions (e.g., TM, SL), and time-base functions. The package is an 80-pin, 0.5 mm-pitch compact package. In addition to various input/output ports and a dedicated key-input port, which are controlled by powerful input/output instructions (IN1 to 3, OUT1 to 3), there are many dedicated LCD pins, a PWM output port, a BUZR port, a 6-bit A/D converter, a serial interface, and an IF counter, etc. Low-voltage and low-current consumption make this microcontroller suitable for portable DTS equipment.
Weight: 0.45 g (typ.)
Features
* * * * * * * * * * * * * * * * * * * * * * 4 bit microcontroller for single-chip digital tuning systems. Operating voltage VDD = 1.8 to 3.6 V, with low current consumption due to CMOS circuitry (with only the CPU operating when VDD = 3 V, IDD = 100 A max) Built-in prescaler (1/2 fixed divider +2 modulus prescaler: fmax 230 MHz) Features built-in 1/4-duty, 1/2-bias LCD drivers and a built-in 3 V booster circuit for the display. Data memory (RAM) and ports are easily backed up. Program memory (ROM): 16 bit x 7168 steps Data memory (RAM): 4 bit x 256 words 62-instruction set (all one-word instructions) Instruction execution time: 40 s (with 75-kHz crystal) (MVGS, DAL instructions: 80 s) Many addition and subtraction instructions (12 types each addition and subtraction) Powerful composite decision instructions (TMTR, TMFR, TMT, TMF, TMTN, TMFN) Data can be transmitted between addresses on the same row. Register indirect transfer available (MVGD, MVGS instructions). 16 powerful general registers (located in RAM) Stack levels: 2 Free branching (JUMP instructions) is allowed in the 7168 steps of program memory (ROM) as there are no pages or fields. 16 bits of any address in the 1024 program memory steps (ROM) can be referenced (DAL instructions). Features independent frequency input pins (FMIN and AMIN) and two (DO1 and DO2) phase comparator outputs for FM/VHF and AM. Seven kinds of reference frequencies can be selected via software. Powerful input/output instructions (IN1 to 3, OUT1 to 3). Dedicated input ports (K0 to K3) for key input, 29 LCD drive pins (100 segments maximum) available. 29 I/O ports: 27 input/output programmable in 1-bit units, 1 output-only port, and 1 input-only port. The 2 IFIN, and DO1 pins can be switched by instruction to IN1 (input-only) or OT2 (output-only). In addition, 9 output LCD output pins for S17 to S25 can be switched to I/O port in 1-bit units. Three backup modes available by instruction: Only CPU operation, crystal oscillation only, clock stop. Features a built-in 2-Hz timer F/F and a built-in 10/100 Hz interval pulse outputs (internal port for time base).
* *
1
2005-04-20
TC9327BFG
* * * * * * * Allows PLL lock status detection. Four of the LCD segment outputs (S22 to S25) can also operate as key return timing outputs (KR0 to KR3). The I/O ports are not dedicated for key return timing outputs but can have other uses as well. Built-in 20-bit, general-purpose IF counters can detect stations during auto-tuning by counting the intermediate frequencies of each band. Built-in buzzer output circuit can output 8 kinds of frequencies in 4 modes: Continuous output, single-shot output, 10-Hz intermittent output, and 10-Hz intermittent 1-Hz interval output. Features built-in 12-bit PWM circuit usable for easy-to-use D/A converter. Features a built-in 3-channel, 6-bit A/D converter. To prevent CPU malfunction, a built-in supply voltage drop detection circuit shuts down the CPU when the voltage falls below 1.55 V.
Pin Assignment
2
2005-04-20
TC9327BFG
Block Diagram
3
2005-04-20
TC9327BFG
Description of Pin Function
Pin No. 1 2 3 4 Symbol COM1 COM2 COM3 COM4 Pin Name Function and Operation Output common signals to LCD panels. Through a matrix with pins S1 to S25, a maximum 100 segments can be displayed. LCD common output Three levels, VLCD, VEE, and GND, are output at 62.5 Hz every 2 ms. VEE is output after system reset and CLOCK STOP are released, and a common signal is output after the DISP OFF bit is set to "0". Remarks
5~20
S1~S16
LCD segment output Segment signal output terminals for LCD panel. Together with COM1 to COM4, a matrix is formed that can display a maximum of 100 segments. S17 to S25 are usable as I/O port by program.
21~25
S17/P7-0~ S21/P8-0
LCD segment output/I/O port
Signals for key matrix and the segment signals from pins S22/KR3 to S25/KR0 are output on a time sharing basis. 4 x 4 = 16 key matrix can be created in conjunction with key inport ports K0 to K3.
26~29
S22/P8-1 /KR3~ S25/P9-0 /KR0
LCD segment output/I/O port/key return timing output
30~32
P9-1~P9-3
I/O port 9
3-bit I/O port, capable of input/output setup for each bit via software.
33
IN2
Input port 2
1-bit input port
4-bit input port for key matrix input, capable of inputting a maximum of 4 x 4 = 16 key data in combination with the key return timing outputs (KR0 to KR3) of an LCD segment pin. Comprises an A/D comparator making it possible to select high impedance with pull-down and pull-up pins for inputs, and to perform programming with a 3-bit input threshold. This allows various key matrices to be formed. Also usable as a 4-channel 3-bit A/D converter with a successive comparison formula via software. When an "H" level is applied in key input ports set to pull-down mode, WAIT mode is canceled.
34~37
K0~K3
Key input port
4
2005-04-20
TC9327BFG
Pin No. Symbol Pin Name Function and Operation The input and output of these 4-bit I/O ports can be programmed in 1-bit units. This pin is capable of outputting timing signals for the key matrix by program. 38~41 P1-0~P1-3 I/O port 1 It contains load resistance in N-ch, and can form the matrix for a push-key needing no diode for the key matrix. By altering the input of I/O ports set to input, the CLOCK STOP mode or the WAIT mode can be released, and the MUTE bit of the MUTE pin can be set to "1". 4-bit I/O ports, allowing input and output to be programmed in 1-bit units. P2-0/ADIN1 I/O port 2 /AD analog voltage input /AD analog voltage input /AD analog voltage input /Reference voltage input Pins P2-0 to P2-2 can also be used for analog input to the built-in 6-bit, 3-channel A/D converter. The conversion time of the built-in A/D converter using the successive comparison method is 280 s. The necessary pin can be programmed to AD analog input in 1-bit units, and P2-3 can be set to the reference voltage input. Internal power supply (VDD) or constant voltage (VEE) can be used as the reference voltage. So battery voltage, etc., can be easily detected. The reference voltage input, for which a built-in operational amp. is used, has high impedance. The A/D converter and all associated controls are performed via sortware.
4-bit I/O ports, allowing input and output to be programmed in 1-bit units. Pins P3-0 to P3-2 can also be used for the I/O terminals of serial interface circuits (SIO). SIO functions for 4-bit or 8-bit serial data inputs from the SI pin and outputs from the SO pin at the SCK pin clock edge.
Remarks
P2-1/ADIN2 42~45 P2-2/ADIN3 P2-3/ DC-REF
P3-0/SI 46~49 P3-1/SO
P3 - 2/ SCK P3-3/BUZR
I/O port 3 /Serial data input /Serial data output /Serial clock I/O /Buzzer output
The clock for serial operation ( SCK ) is capable of internal/external options and rise/fall shift options. The SO pin is also capable of switching to serial inputs (SI), facilitating the control of various LSI's and communication between controllers. All SIO inputs use built-in Schmitt circuits. P3-3 pins also functions as the output for a built-in buzzer. The buzzer output can select 8 kinds of 0.625 to 3 kHz frequencies with 4 modes: continuous output, single-shot output, 10-Hz intermittent output, and 10-Hz intermittent 1-Hz interval output. SIO, buzzer, and all associated controls can be programmed. 16-bit I/O ports, allowing input and output to be programmed in 1-bit units. The P4-0 pin is also used for built-in 12-bit PWM outputs. The PWM outputs pulse continuously at 73.26 Hz, and can change the duty of the pulses to 256 steps (8 bits), causing the added pulses to be output using 4 bits for 16 cycles (218.5 ms). The P6-2 and P6-3 pins are also used for input purposes when using 20-bit IF counters as 12-bit and 8-bit binary counters. The P6-2 pin can be used for 12-bit binary counter inputs, and the P6-3 pin for 8-bit binary counter inputs. PWM outputs, counter inputs, and all associated controls can be programmed.
50~61
I/O port 4 P4 - 0/PWM /PWM output P4-1~ I/O port 4~ P6-2/CTRIN1 I/O port 6 P6-3/CTRIN2 /Counter input
5
2005-04-20
TC9327BFG
Pin No. Symbol Pin Name Function and Operation 1-bit output port, normally used for muting control signal output. 62 MUTE Muting output port This pin can set the internal MUTE bit to "1" according to a change in the input of I/O port 1. MUTE bit output logic can be changed: PLL phase difference can also be output using this pin. Remarks
Input pin used for controlling TEST mode. 63 TEST Test mode control input "H" (high) level indicates TEST mode, while "L" (low) indicates normal operation. The pin is normally used at low level or in NC (no connection) state. (a pull-down resistor is builtin). IF signal input pin for the IF counter to count the IF signals of the FM and AM bands and to detect the automatic stop position. The input frequency is between 0.35 to 12 MHz (0.2 Vp-pmin). A built-in input amp. and C coupling IFIN/IN1 /SCIN IF signal input /Input port allow operation at low-level input. The IF counter is a 20 bit counter with optional gate times of 1, 4, 16 and 64 ms. 20 bits of data /Cycle measurement can be readily stored in memory. This counter is input used as a timer when the IF counter is not used. The input pin can be programmed for use as an input port (IN port). CMOS input is used when the pin is set as an IN port. Note: To set SCIN, use the pin with DC coupling and rectangular wave input. PLL phase comparator output pins. When the prescaler output of the programmable counter is higher than the reference frequency, output is at high level. When output is lower than the reference frequency, output is at low level. When output equals the reference frequency, high impedance output is obtained. Because DO1 and DO2 are output in parallel, optional filter constants can be designed for the FM/VHF and AM bands. Pin DO1 can be programmed to high impedance or programmed as an output port (OT2). Thus, the pins can be used to improve lock-up time or used as output ports.
64
65
DO1/OT2
Phase comparator output /Output port Phase comparator output
66
DO2
6
2005-04-20
TC9327BFG
Pin No. Symbol Pin Name Function and Operation Input pin for request/release hold mode. Normally, this pin is used to input radio mode selection signals or battery detection signals. Hold mode includes CLOCK STOP mode (stops crystal oscillation) and WAIT mode (halts CPU). Setting is implemented with the CKSTP instruction or the WAIT instruction. When the CKSTP instruction is executed, request/release of the hold mode depends on the internal MODE bit. If the MODE bit is "0" (MODE-0), executing the CKSTP instruction while the HOLD pin is at low level stops the generator and the CPU and changes to 67 Hold mode control input memory back-up mode. If the MODE bit is "1" (MODE-1), executing the CKSTP instruction enters memory back-up mode regardless of the level of the HOLD pin. Memory back-up is released when the HOLD pin goes high in MODE-0, or when the HOLD pin input changes in MODE-1. When memory back-up mode is entered by executing a WAIT instruction, any change in the Remarks
HOLD
HOLD pin input releases the mode.
In memory back-up mode, current consumption is low (below 10 A), and all the output pins (e.g., display output, output ports) are automatically set to low level.
1-bit output port. 68 OT1 Output port Note: This output goes high after reset, and internal latch data is output as is even when CLOCK STOP is being executed.
Pins to which power is applied. Normally, VDD = 1.8 to 3.6 V is applied. In back-up mode (when CKSTP instructions are being executed), voltage can be lowered to 1.0 V. If voltage falls below 1.55 V while the CPU is operating, the CPU stops to prevent malfunction (STOP mode). When the voltage rises above 1.55 V, the CPU restarts. STOP mode can be detected by checking the STOP F/F bit. If necessary, execute initialization or adjust clock by program. When detecting or preventing CPU malfunctions using an external circuit, STOP mode can be invalidated and rendered non-operative by program. In that case, all four bits of the internal TEST port should be set to "1". If more than 1.8 V is applied when the pin voltage is 0, the device system is reset and the program starts from address "0". (power on reset) Note: To operate the power on reset, the power supply should start up in 10 to 100 ms.
72
VDD
Power-supply pins
69
GND
7
2005-04-20
TC9327BFG
Pin No. Symbol Pin Name Function and Operation Using programmable counter input pins for FM, VHF band. The 1/2 + pulse swallow system (VHF mode) and the pulse swallow system (FM mode) are freely selectable by program. At the VHF mode, local oscillation output (VCO 70 FMIN FM local oscillator signal input output) of 50 to 230 MHz [0.3 Vp-p (min)] is input, and at the FM mode, that of 40 to 130 MHz [0.2 Vp-p (min)] is input. A built-in input amp. and C coupling allow operation at low-level input. Note: When in the PLL OFF mode or when set to AMIN input, the input is pulled down. Programmable counter input pin for AM band. The pulse swallow system (HF mode) and direct dividing system (LF mode) are freely selectable by program. At the HF mode, local oscillation output 71 AMIN AM local oscillator signal input (VCO output) of 1 to 45 MHz [0.2 Vp-p (min)] is input, and at the LF mode, 0.5 to 12 MHz [0.2 Vp-p (min)] is input. Built-in input amp. operates with low-level input using a C coupling. Note: When in PLL OFF mode or when set to FMIN input, the input is pulled down. Input pin for system reset signals. Remarks
RESET takes place while at low level; at high level, the program starts from address "0".
73
RESET
Reset input
Normally, if more than 1.8 V is supplied to VDD when the voltage is 0, the system is reset (power on reset). Accordingly, this pin should be set to high level during operation.
74
XOUT
Crystal oscillator pins. A reference 75-kHz crystal resonator is connected to the XIN and XOUT pins.
75
XIN
Crystal oscillator pin
The oscillator stops oscillating during CKSTP instruction execution. The VXT pin is the power supply for the crystal oscillator. A stabilizing capacitor (0.47 F typ.) is connected.
76
VXT
Voltage doubler boosting pin to drive the LCD. 77 VLCD A capacitor (0.1 to 3.3 F typ.) is connected to boost the voltage. The VLCD pin outputs voltage (3.1 V), which has been doubled from the constant voltage (VEE: 1.55 V) using the capacitor connected between C1 and C2. This potential is supplied to the LCD driver. If the internal VLCD OFF bit is set to "1" by program, an external supply can be input through the VLCD pin to drive the LCD. 79 C2 At this time, the VLCD/2 potential, whose VLCD voltage divided using resisters, is output from the C2 pin.
78
C1
Voltage doubler boosting pin
8
2005-04-20
TC9327BFG
Pin No. Symbol Pin Name Function and Operation 1.55 V constant voltage supply pin to drive the LCD. 80 VEE Constant voltage supply pin A stabilizing capacitor (0.47 F typ.) is connected. This is a reference voltage for the A/D converter, key input, and the bias potential of the LCD common output. Remarks
Note 1: When the device is reset (VDD = 0 V 1.8 V or higher or RESET = "L" "H") I/O ports are set to input, the pins for both LCD output and I/O ports and additional functions (e.g., SIO, A/D converter) are set to I/O port input pins, while the IFIN/IN1/SCIN pins become IF input pins. Note 2: When in PLL OFF mode (when the four bits in the internal reference ports are all set to "1"), the IFIN/SCIN and FMIN, AMIN pins are pulled down, and DO1 and DO2 are at high impedance. Note 3: When in CLOCK STOP mode (during execution of CKSTP instruction), the output ports (excluding OT1 output) and LCD output pins are all at low level, while the constant voltage circuit (VEE), the voltage doubler circuit (VLCD), and the power supply for the crystal oscillator (VXT) are at VDD level. Note 4: When the device is being reset, the contents of the output ports and internal ports are undefined and must be initialized via software. Note 5: When the pins for both LCD output and I/O ports are set to the I/O port, VLCD potential is used as the power supply for the output, so the VLCD level is output at "H" level. In addition, the input power supply is at VDD level, so it can be used in the same way as for the other I/O port inputs.
9
2005-04-20
TC9327BFG
Description of Operations
CPU
The CPU consists of a program counter, a stack register, ALU, a program memory, a data memory, a G-register, a data register, a carry F/F and a judgment circuit.
1. Program Counter (PC)
The program counter consists of a 13-bit binary up-counter and addresses the program memory (ROM). The counter is cleared when the system is reset and the programs start from the 0 address. Under normal conditions, the counter is increased in increments of one whenever an instruction is executed, but the address specified in the instruction operand is loaded when a JUMP instruction or CALL instruction is executed. Also, when an instruction that is equipped with the skip function (AIS, SLTI, TMT, RNS instructions, etc.) is executed and the result of this includes a skip condition, the program counter is increased in increments of two and the subsequent instruction is skipped.
2. Stack Register (STACK)
A register consisting of 2 x 13 bits which stores the contents of the program counter +1 (the return address) when a sub-routine call instruction is executed. The contents of the stack register are loaded into the program counter when the return instruction (RN or RNS instruction) is executed. There are two stack levels available and nesting occurs with both levels.
3. ALU
ALU is equipped with binary 4-bit parallel add/subtract functions, logical operation, comparison and multiple bit judgment functions. This CPU is not equipped with an accumulator, and all operations are handled directly within the data memory.
4. Program Memory (ROM)
The program memory consists of 16 bits x 7168 steps and is used for storing programs. The usable address range consists of 7168 steps between address 0000H and address 1BFFH. The program memory is divided into 7168 separate steps and consists of pages 0 to 6. The JUMP instruction can be freely used throughout all 7168 steps. However, the range of use for the CALL instruction is limited to addresses 400H to 7FFH (page 1). It is also possible to use address 000H to 3FFH (page 0) in the program memory as a data area, and the 16-bit contents of this can be loaded into the data register by executing the DAL instruction. Note 6: An address outside of the program loop must be set when establishing a data area within the program memory.
10
2005-04-20
TC9327BFG
5. Data Memory (RAM)
The data memory consists of 4 bits x 256 words and is used for storing data. These 256 words are expressed in row addresses (4 bits) and column addresses (4 bits). 192 words (row address = addresses 4H to FH) within the data memory are addressed indirectly by the G-register. Owing to this, it is necessary to specify the row address with the G-register before the data in this area can be processed. The addresses 00H to 0FH within the data memory are known as general registers, and these can be used simply by specifying the relevant column addresses (4 bit). These sixteen general registers can be used for operations and transfers with the data memory, and may also be used as normal data memories. Note 7: The column address (4 bit) that specifies the general register is the register number of the general register. Note 8: All row addresses (addresses 0H to FH) can be specified indirectly with the G-register.
Note 9: The indirect specification of row addresses = 0H to FH is also possible
6. G-Register (G-REG)
The G-register is a 4 bit register used for addressing the row addresses (DR = 4H to FH addresses) of the data memory's 192 words. The contents of this register are validated when the MVGD instruction or MVGS instruction are executed, and are not affected through the execution of any other instructions. This register is used as one of the ports, and the contents are set when the OUT1 instruction from amongst the I/O instructions is executed. ( refer to section #1 in register ports.)
7. Data Register (DATA REG)
The data register consists of 1 x 16 bits and loads 16 bits of optional address data from amongst addresses 000H to 3FFH in the program memory when the DAL instruction is executed. This register is used as one of the ports, and the contents are loaded into the data memory in units of 4 bits when the IN1 instruction from amongst the I/O instructions is executed. ( refer to section #2 in register ports.)
8. Carry F/F (CF/F)
This is set when either CARRY or BORROW are issued in the result of calculation instruction execution and is reset if neither of these are issued. The contents of carry F/F can only be amended through the execution of addition or subtraction instructions and are not affected by the execution of any other instruction.
11
2005-04-20
TC9327BFG
9. Judgment Circuit (J)
This circuit judges the skip conditions when an instruction equipped with the skip function is executed. The program counter is increased in increments of two when the skip conditions are satisfied, and the subsequent instruction is skipped. There are 29 instructions equipped with a wide variety of skip functions available. ( refer to the items marked with a "*" symbol in the table of instruction functions and operational instructions in section 11.)
10. Instruction Set Table
A total of 62 instruction sets are available, and all of these are single-word instructions. These instructions are expressed with 6-bit instruction codes.
High Order 2-Bit Low Order 4-Bit 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111 0 1 2 3 4 5 6 7 8 9 A B C D E F AI AIS AIN AIC AICS AICN ORIM ANIM SI SIS SIN SIB SIBS SIBN XORI MVIM 00 0 M, I M, I M, I M, I M, I M, I M, I M, I M, I M, I M, I M, I M, I M, I M, I M, I AD ADS AND AC ACS ACN ORR ANDR SU SUS SUN SB SBS SBN XORR MVSR 01 1 r, M r, M r, M r, M r, M r, M r, M r, M r, M r, M r, M r, M r, M r, M r, M M1, M2 CALL ADDR2 CKSTP, NOOP JUMP ADDR1 TMTR TMFR SEQ SNE LD ST MVGD MVGS 10 2 r, M r, M r, M r, M r, M M, r r, M M, r SLTI SGEI SEQI SNEI TMTN TMT TMFN TMF IN1 IN2 IN3 OUT1 OUT2 OUT3 11 3 M, I M, I M, I M, I M, N M, N M, N M, N M, C M, C M, C C, M C, M C, M
DAL ADDR3, r RN, RNS, WAIT
12
2005-04-20
TC9327BFG
11. Table of Instruction Functions and Operational Instructions (description of the symbols used in the table)
M: Data memory address. Generally one of the addresses from amongst addresses 00H to 3FH in the data memory. r: General register One of the addresses from amongst addresses 00H to 0FH in the data memory. PC: Program counter (13 bits) STACK: Stack register (13 bits) G: G-register (4 bits) DATA: Data register (16 bits) I: Immediate data (4 bits) N: Bit position (4 bits) : ALL "0" C: Port code No. (4 bits) CN: Port code No. (4 bits) RN: General register No. (4 bits) ADDR1: Program memory address (13 bits) ADDR2: Program memory address within page 1 (10 bits) ADDR3: High order 6 bit of the program memory address within page 0 Ca: Carry b: Borrow IN1-IN3: The ports used during the execution of instructions IN1 to IN3 OUT1-OUT3: The ports used during the execution of instructions OUT1 to OUT3 ( ): Contents of the register or data memory [ ] C: Contents of the port indicating code No.C (4 bits) [ ]: Contents of the data memory indicating the contents of the register or data memory [ ] P: Contents of the program memory (16 bits) IC: Instruction code (6 bits) *: Commands equipped with the skip function DC: Data memory column address (4 bits) DR: Data memory row address (2 bits)
13
2005-04-20
TC9327BFG
Instruction Group
Mnemonic
Skip Function
Machine Language (16 bits) Function Description Operation Description IC (6 bits) 000000 A (2 bits) DR DR B (4 bits) DC DC C (4 bits) I
AI
M, I
Add immediate data to memory
M (M) + I
AIS
M, I
*
M (M) + I Add immediate data to memory, then skip if carry Skip if carry Add immediate data to memory, then skip if not carry Add immediate data to memory with carry Add immediate data to memory with carry, then skip if carry Add immediate data to memory with carry, then skip if not carry Add memory to general register Add memory to general register, then skip if carry Add memory to general register, then skip if not carry Add memory to general register with carry Add memory to general register with carry, then skip if carry Add memory to general register with carry, then skip if not carry M (M) + I
000001
I
AIN
M, I
*
000010 Skip if not carry M (M) + I + ca M (M) + I + ca 000100 Skip if carry M (M) + I + ca 000101 Skip if not carry r (r) + (M) r (r) + (M) Skip if carry r (r) + (M) 010010 Skip if not carry r (r) + (M) + ca r (r) + (M) + ca 010100 Skip if carry r (r) + (M) + ca 010101 Skip if not carry 010011 010000 000011
DR
DC
I
AIC
M, I
DR
DC
I
ADDITION INSTRUCTIONS
AICS
M, I
*
DR
DC
I
AICN
M, I
*
DR
DC
I
AD
r, M
DR DR
DC DC
RN RN
ADS
r, M
*
010001
ADN
r, M
*
DR
DC
RN
AC
r, M
DR
DC
RN
ACS
r, M
*
DR
DC
RN
ACN
r, M
*
DR
DC
RN
14
2005-04-20
TC9327BFG
Instruction Group
Mnemonic
Skip Function
Machine Language (16 bits) Function Description Operation Description IC (6 bits) 001000 A (2 bits) DR B (4 bits) DC C (4 bits) I
SI
M, I
Subtract immediate data from memory
M (M) - I
SIS
M, I
*
Subtract immediate data M (M) - I from memory, then skip if Skip if borrow borrow Subtract immediate data M (M) - I from memory, then skip if Skip if not borrow not borrow Subtract immediate data M (M) - I - b from memory with borrow Subtract immediate data from memory with borrow, then skip if borrow Subtract immediate data from memory with borrow, then skip if not borrow Subtract memory from general register Subtract memory from general register, then skip if borrow Subtract memory from general register, then skip if not borrow Subtract memory from general register with borrow Subtract memory from general register with borrow, then skip if borrow Subtract memory from general register with borrow, then skip if not borrow Skip if memory is less than immediate data Skip if memory is greater than or equal to immediate data M (M) - I - b Skip if borrow M (M) - I - b Skip if not borrow r (r) - (M) r (r) - (M)
001001
DR
DC
I
SIN
M, I
*
001010
DR
DC
I
SIB
M, I
001011
DR
DC
I
SIBS
M, I
*
001100
DR
DC
I
SUBTRACTION INSTRUCTIONS
SIBN
M, I
*
001101
DR
DC
I
SU
r, M
011000
DR
DC
RN
SUS
r, M
*
011001 Skip if borrow r (r) - (M) 011010 Skip if not borrow r (r) - (M) - b 011011
DR
DC
RN
SUN
r, M
*
DR
DC
RN
SB
r, M
DR
DC
RN
SBS
r, M
r (r) - (M) - b Skip if borrow r (r) - (M) - b Skip if not borrow Skip if (M) < I Skip if (M) > I =
*
011100
DR
DC
RN
SBN
r, M
*
011101
DR
DC
RN
SLTI
M, I
*
110000
DR
DC
I
COMPARISON INSTRUCTIONS
SGEI
M, I
*
110001
DR
DC
I
SEQI SNEI SEQ SNE
M, I M, I r, M r, M
* * * *
Skip if memory is equal to Skip if (M) = I immediate data Skip if memory is not equal to immediate data Skip if general register is equal to memory Skip if general register is not equal to memory Skip if (M) I Skip if (r) = (M) Skip if (r) (M)
110010 110011 100010 100011
DR DR DR DR
DC DC DC DC
I I RN RN
15
2005-04-20
TC9327BFG
Instruction Group
Mnemonic
Skip Function
Machine Language (16 bits) Function Description Operation Description IC (6 bits) 100100 100101 011111 001111 A (2 bits) DR DR DR DR B (4 bits) DC DC DC1 DC C (4 bits) RN RN DC2 I
LD ST MVSR MVIM
r, M M, r M1, M2 M, I

Load memory to general register Store general register to memory
r (M) M (r)
TRANSFER INSTRUCTIONS
Move memory to memory (DR, DC1) (DR, DC2) in the same row Move immediate data to memory Move memory to destination memory referring to G-register and general register Move source memory referring to G-register and general register to memory Input IN1 port data to memory Output contents of memory to OUT1 port Input IN2 port data to memory Output contents of memory to OUT2 port Input IN3 port data to memory Output contents of memory to OUT3 port Logical OR of general register and memory Logical AND of general register and memory Logical OR of memory and immediate data Logical AND of memory and immediate data Logical exclusive OR of memory and immediate data Logical exclusive OR of general register and memory MI
MVGD
r, M
[(G), (r)] (M)
100110
DR
DC
RN
MVGS
M, r
M [(G), (r)]
100111
DR
DC
RN
IN1 OUT1 IN2 OUT2 IN3 OUT3
M, C C, M M, C C, M M, C C, M r, M r, M M, I M, I

M [IN1] C [OUT1] C (M) M [IN2] C [OUT2] C (M) M [IN3] C [OUT3] C (M) r (r) (M) r (r) (M) M (M) I M (M) I M (M) I
111000 111011 111001 111100 111010 111101 010110 010111 000110 000111
DR DR DR DR DR DR DR DR DR DR
DC DC DC DC DC DC DC DC DC DC
CN CN CN CN CN CN RN RN I I
I/O INSTRUCTIONS LOGICAL OPERATION INSTRUCTIONS
ORR ANDR ORIM ANIM
XORIM
M, I
001110
DR
DC
I
XORR
r, M
r (r) (M)
011110
DR
DC
RN
16
2005-04-20
TC9327BFG
Instruction Group
Mnemonic
Skip Function
Machine Language (16 bits) Function Description Operation Description IC (6 bits) A (2 bits) B (4 bits) C (4 bits)
TMTR
r, M
*
Test general register bits by memory bits, then skip Skip if r [N (M)] = all "1" if all bits specified are true Test general register bits by memory bits, then skip Skip if r [N (M)] = all "0" if all bits specified are false Test memory bits, then skip if all bits specified are true Test memory bits, then skip if all bits specified are false Test memory bits, then not skip if all bits specified are true Test memory bits, then not skip if all bits specified are false Call subroutine Return to main routine Return to main routine and skip unconditionally Skip if M (N) = all "1"
100000
DR
DC
RN
BIT JUDGMENT INSTRUCTIONS
TMFR
r, M
*
100001
DR
DC
RN
TMT
M, N
*
110101
DR
DC
N
TMF
M, N
*
Skip if M (N) = all "0"
110111
DR
DC
N
TMTN
M, N
*
Skip if M (N) = not all "1"
110100
DR
DC
N
TMFN
M, N
* *
Skip if M (N) = not all "0" STACK (PC) + 1 and PC ADDR2 + 400 H PC (STACK) PC (STACK) and skip
110110
DR
DC
N
SUB-ROUTINE INSTRUCTIONS
CALL ADDR2 RN RNS
101111 111111 111111 00 01
ADDR2 (10 bits)


JUMP INSTRUCTIONS
JUMP ADDR1
Jump to the address specified
PC ADDR1
101
ADDR1 (13 bits)
DAL ADDR3, r
Load program memory in page 0 to DATA register At P = "0" H, the condition is CPU waiting (soft wait mode)
DATA [ADDR3 + (r)] P in page 0
111110
ADDR3 (6 bits)
RN
OTHER INSTRUCTIONS
WAIT
P
At P = "1" H, except for clock generator, all function is waiting (hard wait mode) Clock generator stop No operation
Wait at condition P
111111
10
0000
P
CKSTP NOOP

Stop clock generator in
HOLD = "0"
111111 111111
10 11
1000

Note 10: The four low order bits of the program memory's 10-bit address specified with the DAL instruction are addressed indirectly with the contents of the general register. The execution time for the DAL instruction is 80 s (two machine cycles). Note 11: The execution time for the MVGS instruction is 80 s (two machine cycles).
17
2005-04-20
TC9327BFG
I/O Map
All of the ports within the device are expressed with a matrix of six I/O instructions (OUT 1 to 3 instructions and IN 1 to 3 instructions) and a 4-bit code number. The allocation of these ports is shown on the following page in the form of an I/O map. The ports used in the execution of the various I/O instructions on the horizontal axis of the I/O map are allocated to the port code numbers indicated on the vertical axis. The G-register and data register are also used as ports. The OUT 1 to 3 instructions are specified as output ports and the IN 1 to 3 instructions are specified as input ports. Note 12: The ports indicated by the angled lines on the I/O map do not actually exist within the device. The contents of other ports and data memories are not affected when data is output to a non-existent output port with the execution of the output instruction. The data loaded from data memories when a non-existent input port has been specified with the execution of an input instruction becomes `1'. Note 13: The output ports marked with an asterisk (*) on the I/O map are not used. Data output to these ports assume the `don't care' status. Note 14: The Y1 contents of the ports expressed in 4 bits correspond to the data memory data's low order bits and the Y8 contents correspond to the high order bits. The ports specified with the six I/O instructions and code No.C are coded in the following manner:
(example)
The setting for the G-register is allocated to code `F' in the OUT1 instruction. The encoded expression at this time becomes `L1F'.
18
2005-04-20
TC9327BFG
I/O Map
I/O L1 OUT1 Instruction Code 0 Y1 HF Y2 IF offset +1 -1 Y4 Y8 FM AD SEL0 Y1 L2 OUT2 Instruction Y2 A/D control AD SEL1 REF SEL0 REF SEL1 -0 Y4 Y8 Y1 L3 OUT3 Instruction Y2 Y4 Y8 Y1 K1 IN1 Instruction Y2 IF control data -3 BUSY Manual IF data -3 f0 f1 IF data -3 f4 f5 IF data -3
f8 f9 IF data f10 f11 BUSY
K2 IN2 Instruction Y8 1 OVER AD0 Y1 Y2 A/D data AD1 A/D data 1 f2 f3 AD4 AD5 BUSY -0 AD2 AD3 -0 Y4 Y8 Y1
K3 IN3 Instruction Y2 Y4 Y8
Y4
I/O-1 data -1 -2
I/O-1 data -1 -2 -3
1
Programmable counter selection #1 #2 Programmable counter PA PB Reference port R0 R1 R2 PC
A/D control * STA SIO control PD edge
SCK - INV SCK - I/ O
I/O-2 data * -0 -1 -2
I/O-2 data -1 -2 -3
2
I/O-3 data SIO-ON * -0 -1 -2
I/O-3 data f6 f7 SIO control data
COUNT SIO F/F 1
-0
-1
-2
-3
3
SIO control R16 STA
SO - I/ O 8/ 4 bit
I/O-4 data -0 -1 -2
I/O-4 data -0 -1 -2 -3
IF counter control 4 OT1
5
STA/ STP
SIO output data
Split SO0 SO1 SO2 SO3
I/O-5 data
SIO input data
f14 f15 SI0 SI1 SI2 SI3
I/O-5 data
SC ON
IF/IN1
-0
-1
-2
-3
f12
f13 IF data
-0
-1
-2
-3
IF counter control Manual MUTE OUT 6 MUTE 7 UNLOCK RESET I/O POL DO1 control OTC OT2 Hz UNLOCK 2 Hz F/F G0 G1 SO4
SIO output data SO5 SO6 Test data #4 #5 SO7
I/O-6 data
SIO input data f18 f19 SI4 SI5 Timer 2 Hz F/F 10 Hz 100 Hz SI6 SI7 STOP F/F
I/O-6 data
-0
-1
-2
-3
f16
f17
-0
-1
-2
-3
Timer reset Timer
UNLOCK IN1 F/F ENABLE 1 KR1
KEY scan digit KR2 1 1
PWM/BUZR data 8 PW0/BM0 9 PW4/BF0 A PW8 B PWM ON PW9 BUZR ON Test data C #0 D S1 E G-reg F #0 #1 #2 #3 COM1 COM2 COM3 COM4 IO-0 IO-1 IO-2 IO-3 d12 d13 d14 d15 CKSTP MODE S2 SEG-1 data COM1 COM2 COM3 COM4 I/O1 S4 S8 #1 #2 #3 SEG data selection PW10 PWM/
BUZR
KEY input data PW3/* Key scan control PW7/BEN KC0 KC1 KC2 KC3 K0 K0 K1 K2 K3
PW1/BM1
PW2/*
PWM/BUZR data PW5/BF1 PW6/BF2
KEY scan data K1 K2 K3
PWM data PW11 Buffer transfer/* KSD1
Key scan data selection KSD2 KSD4 KSD8 I/O-7 data
-0
-1
-2
-3
HOLD
I/O-7 data 1 DATA-reg 1 1
-0
-1
-2
-3
I/O-8 data
I/O-8 data d2 d3
-0
-1
-2
-3
d0
d1 DATA-reg
-0
-1
-2
-3
I/O-9 data
I/O-9 data d6 d7
-0
-1
-2
-3
d4
d5 DATA-reg
-0
IN2
-1
1
-2
1
-3
1
I/O control selection I/O2 I/O4 I/O8 d8
d9 DATA-reg
d10
d11
SEG-2 data
I/O control data
*: Programmable counter
19
2005-04-20
TC9327BFG
Crystal Resonator Connection
A 75 kHz crystal resonator is connected to the device's crystal resonator terminal (XIN, XOUT) as indicated below. The oscillation signal is supplied to the clock generator, the reference frequency divider and other elements, and generates the various CPU timing signals and reference frequencies. The crystal resonator circuit is powered by the voltage supplied from a built-in rated voltage circuit (VXT = 1.4 V typ.). This enables the stable operation of the crystal resonator and reduces current consumption.
Note 15: It is necessary to use a crystal resonator with a low CI value and favorable start-up characteristics.
System Reset
The device's system will be reset when the RESET terminal is subject to the `L' level or when a voltage of 0 V 1.8 V or more is supplied to the VDD terminal (power-on reset). The program will start from the 0 address immediately after the 100 ms stand-by time has passed following system reset. The RESET terminal should be fixed at the `H' level as the power-on reset function is used under normal conditions. Note 16: The LCD common output and the segment output will be fixed at the `L' level during system reset and during the subsequent stand-by period. Note 17: The internal ports outlined in the table below will be fixed after system reset, but all other ports will become unstable. It is therefore advisable to initialize the ports with a program in accordance with necessity.
Fixed Internal Ports
Ports Fixed at `0' SC ON, Split bit (L14), manual bit (L15) IO, POL, UNLOCK bit (L16) DO1 control port (L17) BUZR control ports (L18, L19) PWM ON, BUZR ON, PWM/BUZR, transfer bit (L1B) Test ports (L26, L2FF) CKSTP MODE bit (L1E) AD control port (L20) SIO control ports (L22, L23) Timer port (K26) Key scan control ports (L290, L292 to L294) VLCD OFF bit (L2FF) IO-1 to IO-6 and IO9 IO control ports (L3F0 to L3F5, L3FD) Ports Fixed at `1' Reference port (L13) MUTE bit (L16)
IF/IN1 (L14)
Test port (L1C)
DISP OFF bit (L2FF) SEG port (SEG/IO control ports: L3F8 to L3FA)
20
2005-04-20
TC9327BFG
Back-Up Mode
Three different types of back-up mode can be activated through the execution of the CKSTP instruction and WAIT instruction.
1. Clock Stop Mode
The clock stop mode is a function that suspends system operations and maintains the internal status immediately prior to suspension at a low level of current consumption (10 A or less at VDD = 3.0 V). Crystal oscillations are suspended simultaneously and all output terminals and output ports for LCD display purposes are automatically fixed at the `L' level or at the OFF status. The mains power voltage can be reduced to 1.0 V with the clock stop mode. Suspension is activated at the CKSTP instruction execution address when the CKSTP instruction is executed. The next address is executed after approximately 100 ms of stand-by time when the clock stop mode is cancelled. (1) Clock stop mode setting There are two types of mode setting for the clock stop mode. The required setting is selected with the CKSTP MODE bit. This bit is accessed with the OUT1 instruction for which [CN = EH] has been specified in the operand.
1)
MODE-0 By setting this mode, the clock stop mode is assumed if the CKSTP instruction is executed when the HOLD terminal is in the `L' level. The same operations as the NOOP instruction will be assumed if the CKSTP instruction is executed when the HOLD terminal is in the `H' level.
2)
MODE-1 By setting this mode, the clock stop mode is assumed when the CKSTP instruction is executed regardless of the HOLD terminal level.
Note 18: PLL will assume the off status during CKSTP instruction execution.
(2)
Canceling the clock stop mode 1) MODE-0 The clock stop mode is cancelled when specified in this mode by changing the `H' level of the HOLD terminal or the input status of I/O port 1 (P1-0 to P1-3) specified in the input port. MODE-1 The clock stop mode is cancelled when specified in this mode by changing the HOLD terminal or the input status of I/O port 1 (P1-0 to P1-3) specified in the input port.
2)
21
2005-04-20
TC9327BFG
(3) Clock stop mode timing 1) MODE-0
(the clock stop mode is assumed when the CKSTP instruction is executed when the HOLD input is in the `L' level.) 2) MODE-1
(the clock stop mode is assumed whenever the CKSTP instruction is executed.) (4) Example of a circuit (example of a MODE-0 circuit)
Example of a Battery Back-Up Circuit
Example of a Condenser Back-Up Circuit
22
2005-04-20
TC9327BFG
2. Wait Mode
The wait mode suspends system operations, maintains the internal status immediately prior to suspension and reduces current consumption. There are two types of wait mode available; the SOFT WAIT mode and the HARD WAIT mode. Operations are suspended at the address where the WAIT instruction was executed when the wait mode is activated. The next address is executed immediately after the wait mode is cancelled without entering a stand-by status. (1) SOFT WAIT mode Only the CPU operations within the device are suspended when the WAIT instruction in which [P = 0H] has been specified in the operand is executed. The crystal resonator, display circuit and other elements will continue to operate normally at this time. The SOFT WAIT mode is efficient in reducing current consumption during clock operations when used in programs that include clock functions.
Note 19: Current consumption will differ in accordance with the program.
(2)
HARD WAIT mode The operations of all elements, with the exception of the crystal resonator, can be suspended by the execution of The WAIT instruction in which [P = 1H] has been specified in the operand. This enables even greater levels of current consumption reduction than the SOFT WAIT mode. It suspends the CPU and the display circuit and all LCD display output terminals are automatically fixed at the `L' level. (20 A typ. at VDD = 3 V) Wait mode setting The wait status is assumed whenever the WAIT instruction is executed.
Note 20: The PLL OFF status will be assumed when in the HARD WAIT mode, but the PLL OFF status will not be assumed when in the SOFT WAIT mode. It is therefore necessary to set the PLL OFF status in the program prior to executing the SOFT WAIT function.
(3)
(4)
Wait mode cancellation conditions The wait mode is cancelled when the following conditions are satisfied: 1) When the input status of the HOLD terminal changes. 2) When the `H' level is input for the key input terminals (K0 to K3). (however, only in the key input mode.) 3) When the 2 Hz timer F/F is set as `1' (only with the SOFT WAIT mode.) 4) When the input status of the I/O port specified in the input port (P1-0 to P1-3) changes.
3.
HOLD Input Port
The HOLD terminal can be used as an input port. This bit loads data input with the IN1 instruction for which [CN = BH] has been specified in the operand into the data memory. It is necessary to access this port prior to the execution of the CKSTP instruction when the clock stop mode has been set. It is necessary to note that there are cases when the clock stop mode will not be activated if the CKSTP instruction is executed without this port being accessed.
23
2005-04-20
TC9327BFG
Programmable Counter
The programmable counter consists of two modulus pre-scalers, a 4-bit + 13-bit programmable counter and a port to control these elements. The programmable counter controls the ON/OFF functions for the contents of the reference port.
1. Programmable Counter Control Port
A port for controlling frequencies, division methods and IF correction (IF offset) when in the FM band.
Note 21: `1' is added to the L11 data whenever L12 is accessed.
The division method and offset are accessed with the OUT1 instruction for which [CN = 0H] has been specified in the operand. Frequency setting is accessed with the OUT1 instruction for which [CN = 1H, 2H] has been specified in the operand, and setting is performed by writing in the PA-PD bit (L12). This port is divided with the programmable counter selection port (L11), and a corresponding programmable counter is set up by setting data in the selection port. Only the MSB P16 is accessed with the OUT1 instruction for which [CN = 3H] has been specified in the operand, and setting is performed by writing in the P16 bit (L13). All data between P0 and P16 are updated when P16 is set. It is therefore necessary to access P16 without fail even when updating only certain items of data and to perform setting as the final process. `1' is added to the programmable counter selection whenever the programmable counter data (L12) is accessed. Setting can easily be carried out by setting `0' in the programmable counter selection port and continually accessing the programmable counter data.
24
2005-04-20
TC9327BFG
2. Division Method Setting
The pulse swallow method or direct division method are selected with the HF and FM ports. The direct division method is selected when in the AM band. The following four methods are available and should be selected in accordance with the frequency band being used.
Example of Receiving Band MW/LW SW FM VHF Operation Frequency Range 0.5~12 MHz 1~45 MHz 40~130 MHz 50~230 MHz FMIN 2n Input Terminal AMIN Division Number (Note 22)
Mode LF HF FM VHF
HF FM 0 1 0 1 0 0 1 1
Division Method Direct division method (1/15 or 1/16) Pulse swallow method 1/2 x (1/15 or 1/16) Pulse swallow method
n
Note 22: `n' represents the number of divisions programmed.
3. IF Correction Function when in the FM Band
It is possible to add or subtract `1' from the frequency without modifying the number of divisions programmed when the pulse swallow method has been selected with the IF offset 1 port, and IF offset can be used when in the FM band. The IF offset function will not operate when the direct division method has been selected.
+1
0 0 1 1
-1
0 1 0 1
Division Number (during VHF) 2n 2(n - 1) 2(n + 1) Inhibited
Division Number (during FM and HF) n n-1 n+1 Inhibited
4. Frequency Division Number Setting
The frequency division number for the programmable counter is set in bits P0 to P16 in binary.
*
Pulse swallow method (17-bits)
*
Direct division method (13 bits)
Note 23: The data in ports P0 to P3 is of no concern with the direct division method, and port P4 becomes LSB. Note 24: The program value will become a two-fold frequency division number when in the VHF mode.
25
2005-04-20
TC9327BFG
5. Programmable Counter Circuit Configuration
*
Pulse swallow method circuit configuration
1 1 modulus pre-scalers, the 4-bit swallow counter and a 13-bit 15 16 binary programmable counter. A 1/2 frequency divider is added to the front stage of the pre-scaler when in the VHF mode.
This circuit consists of two
*
Direct division method circuit configuration The pre-scaler is not required if this is selected, and instead, the 13-bit programmable counter is used.
Note 25: Both FMIN and AMIN terminals have been fitted into the amplifier, and small amplitude is possible by linking them to a condenser. The input is pull-down for input terminals which were not selected with the division method and when the PLL is in the off mode (set with the reference port).
26
2005-04-20
TC9327BFG
Reference Frequency Divider
The reference frequency divider divides the oscillation frequencies of the external 75 kHz crystal and generates the following seven types of PLL reference frequency signals; 1 kHz, 3 kHz, 3.125 kHz, 5 kHz, 6.25 kHz, 12.5 kHz and 25 kHz. These signals are selected with reference port data. The selected signal is supplied as a reference frequency for the phase comparator as described below. Also, the PLL is switched on and off with the contents of the reference port.
1. Reference Port
The reference port is an internal port for selecting the seven reference frequency signals. This port is accessed with the OUT1 instruction for which [CN = 3H] has been specified in the operand (L13). Operations for the programmable counter, the IF counter and the reference counter are suspended and the PLL assumes the off mode when the contents of the reference port are all `1'. As the frequency division setting data for the programmable counter is updated when the reference port is set, it is necessary to set the frequency division number of the programmable counter prior to setting the reference port.
27
2005-04-20
TC9327BFG
Phase Comparator and Lock Detection Port
The phase comparator compares the difference in phasing between the reference frequency signal supplied from the reference frequency divider and the frequency division output of the programmable counter and outputs the result. It then controls the VCO via a low pass filter in order to ensure that the two frequency signals and the phase difference match. As the phase comparator outputs both the DO1 and DO2 tri-state buffer terminals in parallel, it is possible to ensure the optimum filter constants for the FM/VHF and AM bands during design. The DO1 terminal can also be used as a general-purpose output with the DO1 control port. In addition to this, the DO1 terminal can be set at high impedance, which enables PLL loop lock-up types and other character improvements with the use of the DO1 and DO2 terminals. The lock detection port enables the lock status of the PLL system to be detected.
1. DO1 Control Port and the Unlock Detection Port
28
2005-04-20
TC9327BFG
OTC, OT2 and each Hz bit of the DO1 control port use the DO1 output as a general-purpose output port and control the high impedance status without having to output the DO1 output phase difference. This can be set in the program depending on the specifications. The UNLOCK F/F bit detects the phase difference between the programmable counter frequency division output and the reference frequency when the phasing is misaligned by approximately 180. The UNLOCK F/F is set when the phase difference does not match (when in the unlock status). The UNLOCK F/F status is reset whenever the UNLOCK RESET bit is set as `1'. It is necessary to access to UNLOCK F/F after establishing more time than is required for the reference frequency cycle after the unlock F/F has been reset in order to detect the phase difference with the reference frequency cycle. It is for this purpose that the enable bit has been made available, but the unlock F/F must not be accessed until after it has been confirmed that the unlock enable has been set at `1'. The unlock enable bit will be reset whenever the UNLOCK RESET bit is set at `1'. The control of these ports and data loading are performed with the OUT1/IN1 instructions for which [CN = 7H] has been set in the operand. Note 27: The DO output will enter a high impedance status when the PLL is in the off mode. However, the output data will be output without modification when DO1 has been set as the output port (OT2 output).
2. Phase Comparator and Unlock Port Timing
29
2005-04-20
TC9327BFG
3. Phase Comparator and the Unlock Port Circuit Configuration
When a Filter Constant Has Been Set for Each Band
When the LPF is Shared (sets DO1 at high impedance and switches the filter constants)
Example of an Active Low Pass Filter Circuit (for reference purposes)
Note 28: The filter circuits illustrated in the above diagrams are for reference purpose only. It is necessary to examine the system band configuration and characteristics and design actual circuits in accordance with requirements.
30
2005-04-20
TC9327BFG
IF Counter
The IF counter is a 20-bit general-purpose IF counter that calculates FM and AM intermediate frequencies (IF) during auto-tuning and can be used for detecting auto-stop signals, etc. It is also equipped with a cycle measurement function to measure the cycle of low frequency pilot signals. In addition to this, it is also possible to use the general-purpose IF counter as a timer function when it is not being used for calculation purposes. The IF counter consists of a 20-bit binary counter and a control port.
1. IF Counter Control Port and Data Port
31
2005-04-20
TC9327BFG
Note 29: The IFIN input amplifier is disabled in the PLL off mode when the IF input is set. Note 30: The IF counter can be operated in any mode regardless of the PLL mode when the IN1 input (general input port) is set. Signals are input at the logic level in this event. (1) IF counter automatic mode (frequency measurement) In order to use the IF counter automatic mode, the IF terminal for which input is required is set in the IF input with the IF/ IN1 switching bit, and the SCON bit is set at the frequency measurements mode's `0'. The IF counter is operated by setting the gate time with the IF input frequency band, setting `0' for the manual bit and setting `1' for the STA/ STP bit. This inputs the clock from the IF terminal to the 20-bit binary counter during the set gate time, and the input pulse is counted and then finished. The point for finishing IF counter calculation is determined by referencing the BUSY bit. Also, the OVER bit is set at `1' if the calculation value reaches a pulse count of 220 or more. By determining that the BUSY bit and the OVER bit are set at `0', the frequency input to the IF input terminal is calculated by loading the IF data in f0 to f19.
IF counter manual mode (frequency measurement) The manual mode is used to control the gate time with the internal time base (10 Hz, etc) and measurement the IF frequency. This method is activated by setting the IF counter in the same way as explained for the automatic mode and then setting the G0/G1 bit data at anything other than `1'. Calculation is then started by setting the Manual bit to `1' and setting the STA/ STP bit to `1'. Calculations are terminated by setting the STA/ STP bit to `0', and the data is loaded in binary.
(2)
32
2005-04-20
TC9327BFG
(3) IF counter cycle mode (cycle measurement) This mode is used to measure the low frequencies that cannot be measured with the frequency measurement method. Measurement is performed by entering the reference clock (75 kHz) for the duration of one cycle of the input signal into the 20-bit binary counter and measuring the cycle through the judgment of the pulse count. This input terminal is also used as the IF input terminal, it is possible to switch across to the SCIN terminal by setting `1' in the SCON bit. The Manual bit, the G0 bit and the G1 bit are set at `0' during SCIN setting. Cycle measurement is started in the same way as the frequency measurement method, and the calculation data is loaded after the operational status of the BUSY bit has been confirmed.
Note 31: The rectangular waveform must be input to the SCIN terminal with the DC coupling at the logic level. Note 32: Note that the BUSY bit will not become `0' unless the clock has been input to SCIN.
(4) Timer counter mode The IF counter may be used as a timer binary counter when it is not in use. The Manual bit, the G0 bit and the G1 bit are set at `1' to enable the counter to be used as a 75 kHz reference clock in binary. This counter is reset whenever the ST/ STP bit is set at `1'. Counter division mode The 20-bit binary counter can also be divided into a 12-bit and an 8-bit binary counter. This mode is set by setting the Split bit (L14) and the Manual bit (L15) at `1'. The CTRIN1 terminal is used for input into the 12-bit binary counter, and the CTRIN2 terminal is used for input into the 8-bit binary counter. Both of these terminals are also used as the P6-2 and P6-3 terminals, so it is necessary to establish the required setting. The data loaded into the 12-bit counter is the bits between f0 and f11 (K11 to K13) and the data loaded into the 8-bit counter is the bits between f12 and f19 (K14 and K15). These counters are reset when the STA/ STP bit for both are set at `1'.
(5)
Note 33: The rectangular waveform must be input to the CTRIN1 and CTRIN2 terminals with the DC coupling at the logic level.
33
2005-04-20
TC9327BFG
2. IF Counter Circuit Configuration
The IF counter consists of the input amplifier, the gate time control circuit and the 12 + 8 bit binary counter. The IFIN input amplifier will enter the off mode when the PLL is in the off mode, but counter operations that do not require the input amplifier may still be carried out.
Note 34: The IFIN terminal is equipped with an amplifier, so small amplitude operations are possible with the condenser coupling.
Frequency Measurement Automatic Mode
Cycle Measurement Mode
34
2005-04-20
TC9327BFG
LCD Driver
The LCD driver uses the 1/4 duty and 1/2 bias drive method (125 Hz frame frequency). The common output outputs the VLCD, the VLCD/2 (VEE) and the GND electrical potential, and the segment output outputs the VLCD and GND electrical potential. A combination of four common outputs and 25 segment outputs enables a maximum of 100 segments to be illuminated. The S22 to S25 segment output for the LCD driver are also used as the key return output for loading key matrix data. The LCD driver is equipped with a constant voltage circuit (VEE = 1.55 V) for display purposes and a voltage doubler circuit (VLCD = 3.1 V) to increase this two-fold, and is a system that prevents contrast fluctuations in the LCD display even during voltage fluctuations. It is also possible to switch to the I/O ports in units of one bit between S17 and S25, and this allows for programming that are perfectly matched to the system.
1. LCD Driver Port
35
2005-04-20
TC9327BFG
*: Don't care Note 35: The segment data controls illuminate/extinguish for the segments that correspond with the common output and segment output. Note 36: The DISP OFF bit is set at `1' when the system is reset and when the clock stop mode is cancelled. Note 37: The contents of the VLCD OFF bit are reset at `0' when the system is reset.
The LCD driver control port consists of the segment data selection port and the segment data port. These ports are accessed with the OUT2 instruction for which [CN = DH-FH] has been specified in the operand. The segment data for the LCD driver is set with the segment data ports (L2E and L2F). The LCD display will be extinguished when the segment data port is set at `0' and will be illuminated when set at `1'. Also, the segment-2 data (L2FF) specified with FH in the segment selection port becomes the DISP OFF bit and the VLCD OFF bit. It is possible to extinguish all LCD displays with the DISP OFF bit without setting the segment data. The common output enters a non-selected wave status when this bit is set at `1' and all LCD displays are extinguished. The contents of the segment is saved at this point, and the LCDs return to the previous display status when the DISP OFF bit is set at `0'. Segment data can be re-written when the DISP OFF status is in effect. The DISP OFF bit will also be set at `1' after resetting and after the execution of the CKSTP instruction. S17-S25 can be switched across to the I/O port, and control for this is performed with the SEG/IO control ports (L3F8 to L3FA). It becomes the segment output port when this port is set at `1' and the I/O port when set at `0'. It is necessary to pre-set the I/O port control selection (L3E) in order to access this port. In addition to this, it is also possible to use an external power source with the VLCD OFF bit. This is effective when changing over to the crystal drive voltage. This data is divided and set with the segment data selection port (L2D). The S22 to S25 segment output terminals are also used as a key return timing signal for loading key matrix data. The segment output enters the GND level during key loading with this setting.
36
2005-04-20
TC9327BFG
2. LCD Driver Circuit Configuration
37
2005-04-20
TC9327BFG
The electrical potential of the LCD driver waveform outputs VLCD and GND potentials and half of the intermediate level potential of these potentials. S22-S25 also output key return signals during the switching. The `L' level is entered when the segment output is 80 s during key return data loading.
Note 38: The common and segment terminals enter the `L' level during execution of the CKSTP instruction and during initialization.
38
2005-04-20
TC9327BFG
Key Input and Key Return Timing
There are three methods available for loading keys. The correct configuration should be selected for the system in use.
1. Key Control Port and Key Scan Data Port
The key scan control port is used for setting the input level of the key input, the output format of I/O port-1 (P1-0 to P1-3) and the input format for key input. The key data for when hardware key scans are performed is input into the key scan data port (K29), and the key data is loaded into the data memory when this port is accessed. This port is divided by the key scan data selection port (L2A), and this enables the ports that correspond with the data set in this port to be accessed. `1' is added to the data in the key scan data selection port (L2A) whenever the key scan control port (L29) and the key scan data port (K29) are accessed.
39
2005-04-20
TC9327BFG
V: When the VEE bit = `1': 1.55 constant applied (VEE) When the VEE bit = `0': Mains power voltage applied (VDD)
This port is for setting the key input level. The VEE bit enables the reference power to be switched between the VEE terminal and the mains power voltage (VDD terminal). As indicated in the table above, the level of the divided reference power with DA bit and the key input terminal level are compared, and the result of this is output to the key scan data port and the key input data port.
The following output format is assumed when `1' is set in the I/O port-1 key return control port, and the `H' level and `L' level setting for this output is controlled by the I/O port-1 data.
Output Circuit when `1' is Set in the KT0 Bit
40
2005-04-20
TC9327BFG
The bits between KT0 and KT3 correspond to the terminals between P1-0 and P1-3. These bits become I/O ports when set at `0'. It is necessary to set the bits which correspond to the ports which operate key scanning within the I/O-1 control port to `1' (output port, [L3F0]) when key scanning is operated from the I/O port-1 key return control port.
These ports are used for setting the input format of the key input. The input format can be set with the following conditions.
K0 Hz 0 0 1 1
K0P 0 1 0 1
Input Format Pull-down VEE pull-up VDD pull-up High impedance
Pull-down is usually set during pull-down setting. Pull-up is only set when fluctuations exist with the LCD segment output, otherwise high impedance is set. The key matrix is configured with a combination of the key input terminal and the key return output signal during pull-down and pull-up setting. This can also be used by the software as a sequential comparison method 3-bit A/D converter during high impedance setting. The K0P to K3P bits and K0 Hz to K3 Hz bits correspond with the K0 to K3 terminals. Execution of the WAIT instruction can be cancelled and CPU operations re-started by applying the `H' level (VDD x 0.6 V or more) to key input terminals set with pull-down when in the wait mode. The CPU can only be re-started when in the `H' level, and it should be noted that this operation is not possible during pull-up and high impedance setting.
41
2005-04-20
TC9327BFG
The segment output is output with the timing outlined below when the hardware key scan enable bit is set as `1'. The key return signal is not output when this is set at `0'.
It is possible to reference the key scan monitor to determine which key line is currently being loaded when the hardware key scan is in operation. Data loading during the hardware key scan is performed by accessing the key scan data ports (L290 to K293). On the other hand, each of the key input data port (K28) digits are accessed during software key scans, and the result is loaded into the data memory. The input voltage becomes `1' when it is higher than the comparison voltage, and `0' when it is lower.
42
2005-04-20
TC9327BFG
2. Key Scan Circuit Configuration
A key input area of the key scan circuit consists of, an input setting circuit, a 3-bit D/A converter, a comparator and a latch circuit for loading key data. The key return timing output area consists of an LCD segment driver, a counter and a decoder.
43
2005-04-20
TC9327BFG
3. Key Matrix Configuration
The key matrix can be configured into the following three styles: (1) Loading key data with software
The key matrix outlined above is configured when loading keys from programs. This method sets the key line I/O port-1 data (L30) for which loading is required at the `H' level and determines whether the key for loading the key input port data (K28) into the data memory is valid or not. The I/O port-1 data for which loading is not required is set at the `L' level at this point. The key input port data becomes `1' if the key is pressed, `0' if the key is not pressed, and the data is loaded into the data memory. This method can only be used with a 4 x 4 = 16 key matrix, but as the key data is loaded at high speed and high resistance is entered into the P1-0 to P1-3 N channel FET areas, it is not necessary to fit a diode to the I/O for preventing reverse current flows caused by the key being pressed more than once. The following data must be set in the relevant ports in order to use the method of loading data with software.
Hardware Key Scan ON 0 0
DA1~DA3 Without jumper With jumper 4/9 VDD 3/9 VDD
VEE 0 0
KT3~KT0 All "1" All "1"
K0P~K3P All "0" All "0"
K0 Hz~K3 Hz All "0" All "0"
Note 39: Set the bits which corresponds with KT0 to KT3 at `0' when the I/O port-1 is to be used for I/O output. Note 40: The key input voltage applies a low voltage only to the diode's VF (0.6 V) when a diode jumper is configured. For this reason, the threshold value of the key input is set at a low value. A diode to prevent reverse current flows caused by pressing the key more than once is also required, as indicated in the diagram above. This diode is not required in a diode jumper is not configured into the matrix.
By setting the mode in this manner, the execution of the WAIT instruction is cancelled when the `H' level (VDD x 0.6 V or more) is applied during the wait mode, and the CPU re-starts operations. (the `H' level does not affect the DA1 to DA3 bit settings at this time.)
44
2005-04-20
TC9327BFG
(2) Loading key data with LCD segment output
Note 41: Configure of a maximum of 4 x 4 = 16 matrix is possible. Note 42: Push keys and diode jumpers cannot be combined in the same key line. Also, the diode jumper is to be located on the key return signal output.
45
2005-04-20
TC9327BFG
The key matrix outlined in the previous diagram is configured when loading data with LCD segment output. A diode to prevent reverse current is necessary with this key matrix, and care must be taken over the direction of the diode and the diode jumper. With this matrix, the VLCD (3.1 V) electrical potential and the GND potential are output from the segment terminal when fluctuations occur with the LCD output. The segment signal to be loaded during key data loading becomes the GND potential when fluctuations occur in the LCD output, and the key input terminal is pulled up to the VEE electrical potential. The VEE level is input to the key input terminal when the key is not being pressed (or when no jumper diode exists), and the voltage for one diode (0.6 V) is input from the GND potential when the key is being pressed (or when a jumper diode does exist). The electrical potential that has been input is compared with the D/A output level, which is the VEE electrical potential divided into nine, and the compared signal is latched onto the key scan data port that corresponds with the key loading segment's output line. The key data is `1' when a key has been pressed and `0' when a key has not been pressed. The following data must be set in the relevant ports in order to use the method of loading data with LCD segment output.
Hardware Key Scan ON 1
DA1~DA3 6/9 VEE
VEE 1
KT0~KT3 All "0"
K0P~K3P All "1"
K0 Hz~K3 Hz All "0"
The amount of time required for loading one line of key data is 2 ms. Owing to this, the key scan data (K29) is loaded into the data memory while referring to the key scan operation monitor.
Note 43: As the diode jumper data is stored within the latch, it is possible to make the most effective use of data memory space by not loading the data into the data memory, but referring to the contents of the latch when necessary.
46
2005-04-20
TC9327BFG
(3) Loading key data with LCD segment output and I/O ports This method utilizes a combination of loading key data with software and loading key data with LCD segment output. (refer to 3-(1), (2)) The main features of this method include the fact that high-speed key loading can be performed with the I/O ports, and the fact that the keys can be expanded by distributing the keys for which high-speed loading is not necessary to the LCD segment output area. Key loading is performed by the key input data port (K28) for the I/O ports and by the key scan data port (K29) for the segment output. Key input data port access is performed by switching across to the key input comparison voltage. The settings for this method are as follows:
I/O Port Settings
KT0 1 KT1 1 KT2 1 KT3 1
Key Input Settings
K0P 1 K1P 1 K2P 0 K3P 0 K0 Hz K1 Hz K2 Hz K3 Hz 0 0 0 0
It is possible to make the settings for both the I/O ports and the LCD segment output in single bit units.
Note 44: The execution of the WAIT instruction is cancelled when the `H' level (VDD x 0.6 or more) is applied to the key input terminals for which pull-down has been set (the K2 and K3 terminals in the above diagram) during the wait mode, and the CPU re-starts operations. Note 45: As the segment key data is loaded when fluctuations occur in the LCD segment, the threshold value of the key input is different when the I/O port data is loaded simultaneously and the segment data will be loaded erroneously. It is therefore necessary to control the situation with the key scan operation monitor. Note 46: Set all contents of the I/O port-1 control port (L3F0) to `1' (output setting).
47
2005-04-20
TC9327BFG
Serial Interface
The serial interface is a serial I/O port that synchronizes the internal and external serial clocks and sends/receives 4-bit and 8-bit data. The data for LSIs for expansion purposes, micro-computers and other elements are sent and received by the SI, SO and SCK terminals.
1. The Serial Interface's Control Port and Data Port
Note 47: Serial input data can be accessed by directly accessing the contents of the shift register. Note 48: The contents of the serial interface control ports (L22, L23) will be set at `0' when the system is reset.
48
2005-04-20
TC9327BFG
Serial interface control and serial data are accessed with the OUT2 and IN2 instructions for which [CN = 2H-5H] has been specified in the operand. The serial interface terminal is used together with the I/O port-3 P3-0, P3-1 and P3-2 terminals, and each of the I/O port-3 terminals are switched across to the SI, SO and SCK terminals by setting `1' in the SIOON bit.
(1) SCK - INV and SCK - I/O bits The SCK - INV and SCK - I/O bits set the input waveform for the SCK terminal. The following modes are set with this bit data.
SCK Terminal Modes
INV
I/ O I/O
SCK Clock Waveform
0
1
Output
1
1
Output
*
0
Input
(2)
Edge bit The edge bit sets the shift logic for the serial data. This data performs the following data shifting.
*
When edge = `0'
The SO output is output with the rising edge of the SCK clock when the edge bit is set at `0', and the SI input is input to the shift register with the same rising edge.
49
2005-04-20
TC9327BFG
*
When edge = "1"
The SO output is output with the falling edge of the SCK clock when the edge bit is set at `1', and the SI input is input to the shift register with the same falling edge. (3) 8/ 4 bit The 8/ 4 bit selects the length of the serial data. The length of the serial data is set at 4 bits when this bit is `0', and at 8 bits when this bit is `1'. The SCK clock outputs four clocks when 4 bits are selected for the internal clock, and eight clocks when 8 bits are selected.
*
When the 8/ 4 bit is `0' (however, edge = `0' and SCK - INV = `0')
*
When 8/ 4 bit is `1' (however, edge = `0' and SCK - INV = `0')
(4)
SO - I/ O bit The SO - I/ O bit sets the serial I/ O for the SO terminal. The SO terminal outputs serial data when the SO - I/ O bit is set at `0', and the SO terminal is used for serial data input when this bit is set at `1'. The control of this bit enables T-BUS and other serial bus-type LSIs for performing data I/O with single terminals to be easily controlled.
Note 49: It is necessary to pull up the SO terminal in the case of the above as a certain timing exists for floating.
This method sets the data in the serial output data port and performs SIO operations during sending, and performs SIO operations after the input setting of the SO terminal and loads the contents of the serial input data port into the data memory during receiving. The SI terminal can also be controlled as an I/O port (P3-0) when the serial interface has been selected. The I/O output (P3-0) can be used as the strobe pulse terminal for T-BUS and other elements.
Note 50: The I/O control port's P3-0 bit that corresponds with the I/O port-3 must be set at `0' during SI terminal serial data input.
50
2005-04-20
TC9327BFG
(5) Serial interface operation monitor The operational status of the serial interface is determined by referencing the BUSY, COUNT and SIO F/F bits. As the BUSY bit becomes `1' during SIO operations, control data switching and serial data access is performed when the BUSY bit is `0'. The COUNT bit determines if data sending/receiving has been performed in units of 4 bits or not. This bit outputs `0' when shift operations are performed in multiples of four, and `1' when not performed in multiples of four. `1' is set in the SIO F/F bit when the SCK terminal commences clock operations. Both the COUNT bit and SIO F/F bit are reset to `0' when `1' is set in the STA bit. These two bits are mostly used when the SCK terminal sets external clocks. Normal operations are determined to exist when the external clock has been input and serial data has been sent or received. STA bit The serial output data is set in the shift register whenever the STA bit is set at `1' during the SCK internal clock setting, the clock is output from the SCK terminal and shift operations are commenced. The COUNT bit and the SIO F/F bit are simultaneously reset at `0'.
(6)
2. Serial Interface Configuration
The serial interface consists of a control circuit, a shift register and an I/O port.
Note 51: The SI terminal can be used as the I/O port-3 (P3-0) without modification. Note 52: The data set in the serial output data area and the contents of the serial input data do not match. Note 53: The SI terminal set up for SI input, the SCK terminal set up for SCK input and the SO terminal set up for input will all follow the schmitt input method.
51
2005-04-20
TC9327BFG
3. Serial Interface Timing
The frequency of the clock output by the SCK terminal when the internal clock is set within the SCK clock is 37.5 kHz (duty 50%). The following is an example of the timing for the serial interface:
x: Not fixed
Example of Serial Interface Timing
52
2005-04-20
TC9327BFG
D/A Conversion (pulse-width modulation: PWM ) output
The pulse-wide modulation output (PWM) can easily acquire D/A conversion output by the attachment of a low-pass filter. The PWM output is 12-bit resolution and is equipped with one-channel output.
1. PWM Control Port and Data Port
The PWM output is used together with the P4-0 I/O port. P4-0 switches across to the PWM output when `1' is set in the PWM ON bit. PWM data setting is carried out after the PWM/ BUZR bit is set at `1' and the buffer transfer bit is set at `0'. The PWM data is transferred to the PWM data latch when the buffer transfer bit is set at `1' after PWM data setting. A maximum of 109 ms is required after the buffer transfer bit has been set at `1'. Owing to this, care must be taken as the PWM output will not be changed if this bit is set at `0' before the data can be sent to the PWM data latch. PW0 is LSB and PW11 is MSB in the PWM data, and the eight high-order bits of data (PW4 to PW11) control the pulse output pulse width and the four low-order bits of data (PW0 to PW3) control the position to which the pulse added to one cycle of PWM output is to be output. The setting for this data is performed with the OUT1 instruction for which [CN = 8H-BH] has been specified in the operand.
53
2005-04-20
TC9327BFG
2. PWM Output Circuit Configuration
The PWM output circuit consists of a 12-bit binary counter, a PWM latch, comparator circuit and other elements.
3.
PWM Output Waveform
*: Pulse width n x to n: Data values between PW4 and PW11 (0 to 255) to: 26.7 s
Example of PWM Output Timing (pulse added to TS (4) and TS (12): PW1 bit = `1')
PW Data Bits PW0 PW1 PW2 PW3 Area IN which the Additional Pulse is Output ( represents the position to which pulses have been added) 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Note 55: The above-mentioned numerals are the i values of TS (i) Additional pulses are added to the positions marked above with circles when the PW data bit is set at `1'.
One cycle of the PWM output waveform is TM = 212/37.5 kHz = 109.2 ms, and a pulse with a resolution of 12 bits is output. The eight high-order bits between PW4 and PW11 of the PWM data control the pulse width of the pulse output for the TS (TS = TM/16 = 6.83 ms) cycle. The low-level pulse width for the TS cycle becomes n x to (to = 1/37.5 kHz) when the value of PW4 to PW11 is n (n = 0 to 255). The four low-order bits between PW0 to PW3 control the position for the output of the to width's added pulse within the 16 TS (i) areas (i = 0 to 15) within the TM cycle. The low-level pulse width becomes (n + 1) x to in the areas to which the additional pulses are output. An additional pulse is output to the m location within the 16 TS (i) areas when the data for the low-order bit is m (m = 0 to 15). The area to which this additional pulse is added is shown in the above table. (however, the additional pulse will not be output to the TS (0) area.)
54
2005-04-20
TC9327BFG
Buzzer Output (BUZR)
The buzzer output can be used to output tones and alarm tones to confirm key operations and the tuning scan mode. Buzzer types can be selected from a combination of four output modes and eight different frequencies.
1. Buzzer Control Port and Data Port
Buzzer output is used together with the P3-3 I/O port. `1' is set in the BUZR ON bit to set buzzer output. This switches P3-3 across to BUZR output. Buzzer data setting (output mode, frequency selection and output enabling) is performed after the PWM/ BUZR bit has been set at `0'.
Note 56: The contents of the BM0, BM1, BF0 to BF2 and BEN bits are reset at `0' when the system is reset.
55
2005-04-20
TC9327BFG
2. Buzzer Circuit Configuration
3. Buzzer Output Waveform
56
2005-04-20
TC9327BFG
A/D Converter
The A/D converter is used for measuring the strength of electric fields and the voltage of batteries with 3-channel 6-bit resolution.
1. A/D Converter Control Port and Data Port
The A/D converter has 6-bit resolution. It is possible to select between external voltage (DC-REF terminal), mains power voltage (VDD) and 1.55 V constant voltage (VEE) for the standard voltage of A/D conversion. Also, the A/D conversion input follows the external input terminal 3-channel (terminals ADIN1 to ADIN3) multiplex method. Under normal circumstances, the standard voltage is set at the external voltage or mains power voltage, A/D conversion performed on the external input level, and the strength of the electrical field and volume level measured. The A/D converter can also carry out measurements on batteries and mains power applied voltage. The battery signal is output when the battery or mains power applied voltage becomes low, and control moves across to the back-up mode. The A/D converter performs A/D conversion whenever the STA bit is set at `1', and this is ended after seven machine cycles (280 s). A/D conversion completion is determined by referencing the BUSY bit, and the A/D conversion data is loaded into the data memory after conversion has finished. The control for this is access by the OUT2 and IN2 instructions for which [CN = 0H, 1H] has been specified in the operand.
57
2005-04-20
TC9327BFG
2. A/D Converter Circuit Configuration
The A/D converter consists of a 6-bit D/A converter, a comparator, an A/D conversion latch, a control circuit, an A/D data port, a 1.55 V constant voltage circuit (mains power for the LCD driver) and other elements. The A/D converter sequentially latches the data A/D converted with the 6-bit sequential comparison method onto the A/D conversion data latch.
Note 57: The DC-REF terminal is built into the amplifier and is a high impedance input. Note 58: Correct data cannot be acquired even when the A/D conversion data is referenced during A/D conversion. Referencing must be performed after checking with the A/D operation monitor and confirming that conversion has finished. Note 59: `0' (input setting) must be set in the bit which corresponds with the I/O port-2 control port (L3F1) for the terminals which use A/D input and DC-REF.
58
2005-04-20
TC9327BFG
I/O Ports
There are 36 I/O ports available between I/O port-1 and I/O port-9 which are used to input and output control signals. Of these 36 I/O ports, I/O port-2 is used together with the A/D converter input, I/O port-3 in used together with the serial interface and buzzer output, I/O port-4 is used together with the PWM output, I/O port-6 is used together with the counter input, and I/O ports 7, 8 and P9-0 are used together with the LCD driver output. I/O ports 7, 8 and P9-0 are usually used as the LCD driver output.
1. I/O Port Control and I/O Port Data
Note 60: The contents of the I/O control data between I/O-1 and IO-6 and the contents of P9-1 to 3 in I/O-9 are set at `0' (the input port) when the system is reset. Note 61: I/O-1, I/O-2 through to I/O-9 correspond to each of the P1-0 to 3, P2-0 to 3 through to P9-0 to 3 terminals.
59
2005-04-20
TC9327BFG
The input/output for the I/O ports is set with the contents of the I/O control data port. `0' is set in the I/O control data port bit which corresponds to the relevant port when setting the input port, and `1' is set when setting the output port. The I/O control data port is divided by the I/O control selection (L3E). The data which corresponds with the port which is to be set in the I/O control selection is set and the I/O control data port is accessed. 1 is added to the I/O control selection data whenever the I/O control data port is accessed. The output status of the I/O port is controlled by executing the OUT3 instruction which corresponds to each I/O port during output port setting. The contents of the data currently output can also be loaded into the data memory by executing the IN3 instruction. The data input in the I/O port is loaded into the data memory by executing the IN3 instruction which corresponds to each I/O port during input port setting. The contents of the output latch will have absolutely no effect on the input data at this point. Input for I/O ports 2 to 5 and 7 to 9 and terminals P6-0, P6-1 and IN2 use the NOR input structure. The NOR input gate signal ( input instruction ) is set at on by executing the IN3 instruction which corresponds to each I/O port, and the input data is read into the memory. This enables abnormal mains current consumption to be constrained even when the input electrical potential reaches the intermediate potential. As the configuration prevents the generation of abnormal electrical current when these I/O ports are used with N-ch open drain output, low-potential pull-up is possible with the VDD potential. I/O ports-1, P6-2 and P6-3 are always impedance input, so the previously-mentioned functions do not apply. I/O ports 7, 8 and P9-0 are used together with the LCD driver output. As these terminals use the VLCD terminal (step-up voltage) for output power, the `H' level outputs VLCD potential. Care must be taken here as the `H' level has no load capabilities (a load resistance of 1 M or more is recommended.) Also, the input power uses the VDD terminal power, so other I/O ports can be used in the same way during input setting. I/O ports 2 to 4 and 6 are used together with the A/D converter and BUZR output. These ports are set in the I/O port when the system is reset. The I/O port is also set as an input port after the system has been reset, and the combined LCD driver and I/O port terminals are set in the LCD driver output. The execution of the WAIT instruction and CKSTP instruction is cancelled and CPU operations are re-started when the status of the I/O port input specified in the input port changes with I/O port-1. Also, the MUTE port and MUTE bit are forcibly set to `1' during changes in the input status when the MUTE port's I/O bit is set at `1'.
Note 62: I/O port input/output setting and the I/O port data will be set at `don't care' during LCD driver setting with the combined LCD driver and I/O port terminals.
60
2005-04-20
TC9327BFG
Register Port
The G-register and data register outlined in the explanation on the CPU are also used as a single internal port.
1. G-Register (L1F)
This register addresses the data memory's row addresses (DR = 4H to FH) during execution of the MVGD instruction and MVGS instruction. This register is accessed with the OUT1 instruction for which [CN = FH] has been specified in the operand.
Note 63: The contents of this register are only valid when the MVGD instruction and MVGS instruction are executed and are ineffective when any other instruction is executed.
Note 64: All of the data memory row addresses can be specified indirectly by setting data 0H to FH in the G-register. (DR = 0H to FH)
2. Data Registers (K1C to K1F)
16-bit registers which load the program memory data when the DAL instruction is executed. The contents of this register are loaded into the data memory in 4-bit units with the execution of the IN1 instruction for which [CN = CH to FH] has been specified in the operand. This register can be used for loading LCD segment decoding operations, radio band edge data and the data related to binary to BCD conversion.
61
2005-04-20
TC9327BFG
Timer and CPU Stop Functions
The timer is equipped with 100 Hz, 10 Hz and 2 Hz F/F bits and is used for counting clock operations and the tuning scan mode, etc. The CPU stop function suspends CPU operations with the voltage detection circuit when the applied VDD voltage falls to 1.55 V or below in order to prevent CPU malfunctions.
1. Timer Port and STOP F/F Bits
The timer port and STOP F/F bits are accessed with the OUT2 and IN2 instructions for which [CN = 6H] has been specified in the operand.
2. Timer Port Timing
The 2 Hz timer F/F is set with the 2 Hz (500 ms) signal and is reset by setting `1' in the reset port's 2 Hz F/F. This bit is usually used as a clock counter. The 2 Hz timer F/F can only be reset with the reset port's 2 Hz F/F, and incorrect counts will be output and correct times not acquired if not reset within a 500 ms cycle.
t < 500 ms
The 10 Hz and 100 Hz timers are output to 10 Hz and 100 Hz bits with respective cycles of 100 ms and 10 ms and a pulse of duty 50%. Counters at 1 kHz or below will be reset whenever the reset port's timer bit is set at `1'.
62
2005-04-20
TC9327BFG
3. CPU Stop Function and STOP F/F Bit
The STOP F/F bit is set at `1' and CPU operations suspended if the applied VDD voltage falls below 1.55 V in order to prevent CPU malfunctions. The CPU program counter and the execution of instructions are suspended when a voltage of 1.55 V or below is applied to the VDD terminal. CPU operations are re-started when a voltage of 1.55 V or higher is applied to the VDD terminal. Abnormalities will occur with clocks during this period of non-operations. In this event, the situation will be determined by the contents of the STOP F/F, and initialization and clock correction will be performed if necessary. The STOP F/F bit will be reset to `0' whenever the reset port's 2 Hz F/F is set at `1'.
Note 65: The contents of the timer port and STOP F/F will be reset at `0' when the system is reset and when the CKSTP instruction is executed. Note 66: The CKSTOP mode cannot be executed during clock stop mode setting if the voltage applied to the VDD is 1.55 V or below, so care must be taken over the mains power voltage timing when setting the radio off and similar operations. Note 67: The CPU stop function will be inhibited when all of the internal test port (L1C) bits between #0 and #3 are set at `1'.
63
2005-04-20
TC9327BFG
MUTE Output
This is a dedicated 1-bit CMOS output port for muting control purposes.
1. MUTE Port
This port is accessed with the OUT1 instruction for which [CN = 6H] has been specified in the operand. MUTE output is used for muting control. A function to set the MUTE bit at `1' during band switching with I/O port-1 input is also available. This function prevents noise from being generated during linear circuit switching when band switching is performed with the I/O port-1 input for slide switches. Control for this function is performed with the contents of the I/O bit. The POL bit sets the logic for MUTE output. MUTE output can also control muting with the use of the phase difference output. The PLL element is output as a pulse when the lock status is not in effect (in the unlock status). A low-pass filter is attached to the MUTE output in this event, and the output is used for MUTE output. This can be selected with the UNLOCK bit.
64
2005-04-20
TC9327BFG
2. MUTE Output Configuration and Timing
Note 69: When the POL bit = `0' Note 70: A low-pass filter must be attached to the MUTE output when the phase comparator's phase difference output is used.
Test Port
An internal port for testing device functions. Access is performed with the OUT1 instruction for which [CN = CH] has been specified in the operand, and the OUT2 instruction for which [CN = 6H] has been specified in the operand. `0' is usually set with the program.
Bit #6 of the test port can suspend the LCD driver output internal frame signal. Suspension of the frame signal outputs all segment output as segment data inversed output. Segment output will usually enter the `L' level when all segment data bits between COM1 and COM4 are set to `1', and usually enters the `H' level when all bits are set to `0'. This can be used as a simple output port in systems which do not use LCD output. External mains power is to be set with the VLCD OFF bit and a connection established between the VDD terminal and VLCD terminal in this case. The CPU stop function is inhibited when all test port bits between #0 and #3 are set at `1' and enabled when set at `0'. The CPU stop function must be inhibited when external mains power voltage detection is to be performed.
Note 71: The contents of bits #4 to #6 are reset to `0' and bits #0 to #3 are set to `1' when the system is reset.
65
2005-04-20
TC9327BFG
Maximum Ratings (Ta = 25C)
Characteristics Supply voltage Input voltage Power dissipation Operating temperature Storage temperature Symbol VDD VIN PD Topr Tstg Rating -0.3~4.0 -0.3~VDD + 0.3 100 -10~60 -55~125 Unit V V mW C C
Electrical Characteristics (unless otherwise noted, Ta = 25C, VDD = 3.0 V)
Characteristics Rnage of operating supply voltage Symbol VDD Test Circuit Crystal oscillation stopped Rnage of memory retention voltage VHD (CKSTP instruction execution) (*) Under ordinary operation No output load FMIN = 230 MHz input Under ordinary operation No output load Operating current FMIN = 130 MHz input Under CPU operation only IDD2 VDD = 3.0 V (PLL off, display turned on) Soft Wait mode IDD3 (crystal oscillator, display circuit operating, CPU stopped, PLL off) Hard Wait mode IDD4 (crystal oscillator operating only) Crystal oscillation stopped (CKSTP instruction execution) (*) Crystal oscillation fXT = 75 kHz 20 40 30 60 50 100 VDD = 3.0 V 6.0 10 VDD = 3.0 V 7.0 12 1.0 ~ 3.6 V Test Condition (*) Min 1.8 Typ. ~ Max 3.6 Unit V
IDD1
mA
A
Memory retention current Crystal oscillation frequency Crystal oscillation start-up time
IHD fXT tST


0.1 75
10 1.0
A kHz s
Note 72: For conditions marked by an asterisk (*), guaranteed when VDD = 1.8 to 3.6 V, Ta = -10 to 60C
66
2005-04-20
TC9327BFG
Voltage Doubler Circuit
Characteristics Voltage doubler reference voltage Constant voltage temperature characteristics Voltage doubler boosting voltage Symbol VEE DV VLCD Test Circuit Test Condition GND reference (VEE) GND reference (VEE) GND reference (VLCD) Min 1.35 2.7 Typ. 1.55 -5 3.1 Max 1.75 3.5 Unit V mV/C V
Operating Frequency Ranges for Programmable Counter and and LF Counter
Characteristics Symbol Test Circuit Test Condition Sine wave input when VIN = 0.3 Vp-p FMIN (VHF mode) fVHF Sine wave input when VIN = 0.2 Vp-p, VDD = 1.8~3.0 V, Ta = -10~60C FMIN (FM mode) AMIN (HF mode) AMIN (LF mode) IFIN fFM fHF fLF fIF Sine wave input when VIN = 0.2p-p Sine wave input when VIN = 0.2p-p Sine wave input when VIN = 0.2p-p Sine wave input when VIN = 0.2p-p (*) (*) (*) (*) (*) FMIN input (VHF mode) VDD = 1.8~3.0 V, Ta = -10 to 60C 40 1 0.5 0.35 0.3 ~ ~ ~ ~ ~ 130 45 12 12 VDD - 0.8 VDD - 0.8 VDD - 0.8 Vp-p MHz MHz MHz MHz (*) 50 ~ 230 MHz Min Typ. Max Unit
Input amplitude
VIN
0.2
~
FMIN (FM mode), AMIN, IFIN input (*)
0.2
~
Note 72: For conditions marked by an asterisk (*), guaranteed when VDD = 1.8 to 3.6 V, Ta = -10 to 60C
LCD Common Output/Segment Output, General-Purpose I/O Ports
(COM 1 to COM4, S1 to S16, S17/P7-0 to S25/P9-0, P9-1 to 3, IN2)
Characteristics Output current "H" level "L" level Symbol IOH1 IOL1 VBS ILI "H" level Input voltage "L" level VIL2 (when using I/O port, IN port) VIH1 Test Circuit Test Condition VLCD = 3 V, VOH = 2.7 V VLCD = 3 V, VOL = 0.3 V No load VIH = VDD, VIL = 0 V (when using I/O port, IN port) (when using I/O port, IN port) Min -0.4 0.4 1.35 VDD x 0.6 0 Typ. -0.8 0.8 1.55 ~ ~ Max 1.75 1.0 VDD VDD x 0.1 V Unit mA V A
Output voltage 1/2 level Input leak current
67
2005-04-20
TC9327BFG
I/O Port (P1-0 to P1-3)
Characteristics Output current "H" level "L" level Symbol IOH1 IOL1 ILI "H" level "L" level VIH2 VIL2 RON Test Circuit Test Condition VOH = 2.7 V VOL = 0.3 V VIH = 0.3 V, VIL = 0 V (when using I/O port) (when using I/O port) (when using I/O port) VOL = 3.0 V N-ch load resistance (when connected to load resistance) 50 100 200 k Min -0.4 0.4 2.4 0 Typ. -0.8 0.8 ~ ~ Max 1.0 3.0 0.6 Unit mA
Input leak current
A
Input voltage
V
HOLD Input Port
Characteristics Input leak current Input voltage "H" level "L" level Symbol ILI VIH3 VIL3 Test Circuit Test Condition VIH = 3.0 V, VIL = 0 V Min 2.4 0 Typ. ~ ~ Max 1.0 3.0 1.2 Unit A V
A/D Converter (ADIN1 to ADIN3, DC-REF)
Characteristics Analog input voltage range Analog reference voltage range Resolution Conversion total error Analog input leak Symbol VAD VREF VRES ILI Test Circuit Test Condition ADIN1~ADIN3 DC-REF, VDD = 2.0~3.6 V VDD = 2.0~3.6 V VIH = 3.0 V, VIL = 0 V (ADIN1~ADIN3, DC-REF) Min 0 1.0 Typ. ~ ~ 6 1.0 Max VDD VDD x 0.9 4.0 1.0 Unit V V bit LSB A
Key Input Port (K0 to K3)
Characteristics Key input voltage range A/D conversion resolution A/D conversion total error N-ch/P-ch input resistance "H" level Input voltage "L" level Input leak current VIL4 ILI Symbol VKI VRES RIN1 VIH4 Test Circuit Test Condition VDD = 1.8~2.0 V VDD = 2.0~3.6 V When releasing WAIT instruction When releasing WAIT instruction When input resistance is off, VIH = 3.0 V, VIL = 0 V Min 0 50 1.8 0 Typ. ~ 3 100 ~ ~ Max VDD 1.5 0.5 200 3.0 V 0.3 1.0 A Unit V bit LSB k
68
2005-04-20
TC9327BFG
DO1/OT2, DO2 Output, MUTE, OT1 Output
Characteristics Output current "H" level "L" level Symbol IOH1 IOL1 ITL Test Circuit Test Condition VOH = 2.7 V VOL = 0.3 V VTLH = 3.0 V, VTLL = 0 V (DO1, DO2) Min -0.4 0.4 Typ. -0.8 0.8 Max 100 Unit mA nA
Output off leak current
General-Purpose I/O Port (P2-0 to P6-3)
Characteristics Output current Input leak current Input voltage "H" level "L" level "H" level "L" level Symbol IOH1 IOL1 ILI VIH2 VIL2 Test Circuit Test Condition VOH = 2.7 V VOL = 0.3 V VIH = 3.0 V, VIL = 0 V Min -0.4 0.4 2.4 0 Typ. -0.8 0.8 ~ ~ Max 1.0 3.0 0.6 Unit mA A V
IN1/SCIN, RESET Input Port
Characteristics Input leak current Input voltage "H" level "L" level Symbol ILI VIH2 VIL2 Test Circuit Test Condition VIH = 3.0 V, VIL = 0 V (excluding SCIN input) Min 2.4 0 Typ. ~ ~ Max 1.0 3.0 0.6 Unit A V
Others
Characteristics Input pull-down resistance XIN amp. feedback resistance XOUT output resistance Input amp. feedback resistance Voltage drop detection voltage Voltage drop detection temperature property Symbol RIN2 RfXT ROUT RfIN1 RfIN2 VSTP DS Test Circuit (TEST) (XIN-XOUT) (XOUT) (FMIN, AMIN) (IFIN/SCIN) (VDD) (VDD) Test Condition Min 15 150 500 1.35 Typ. 30 20 4 300 1000 1.55 -3 Max 60 600 2000 1.75 Unit k M k k V mV/C
69
2005-04-20
TC9327BFG
Package Dimensions
Weight: 0.45 g (typ.)
70
2005-04-20
TC9327BFG
RESTRICTIONS ON PRODUCT USE
* The information contained herein is subject to change without notice.
030619EBA
* The information contained herein is presented only as a guide for the applications of our products. No responsibility is assumed by TOSHIBA for any infringements of patents or other rights of the third parties which may result from its use. No license is granted by implication or otherwise under any patent or patent rights of TOSHIBA or others. * TOSHIBA is continually working to improve the quality and reliability of its products. Nevertheless, semiconductor devices in general can malfunction or fail due to their inherent electrical sensitivity and vulnerability to physical stress. It is the responsibility of the buyer, when utilizing TOSHIBA products, to comply with the standards of safety in making a safe design for the entire system, and to avoid situations in which a malfunction or failure of such TOSHIBA products could cause loss of human life, bodily injury or damage to property. In developing your designs, please ensure that TOSHIBA products are used within specified operating ranges as set forth in the most recent TOSHIBA products specifications. Also, please keep in mind the precautions and conditions set forth in the "Handling Guide for Semiconductor Devices," or "TOSHIBA Semiconductor Reliability Handbook" etc.. * The TOSHIBA products listed in this document are intended for usage in general electronics applications (computer, personal equipment, office equipment, measuring equipment, industrial robotics, domestic appliances, etc.). These TOSHIBA products are neither intended nor warranted for usage in equipment that requires extraordinarily high quality and/or reliability or a malfunction or failure of which may cause loss of human life or bodily injury ("Unintended Usage"). Unintended Usage include atomic energy control instruments, airplane or spaceship instruments, transportation instruments, traffic signal instruments, combustion control instruments, medical instruments, all types of safety devices, etc.. Unintended Usage of TOSHIBA products listed in this document shall be made at the customer's own risk. * The products described in this document are subject to the foreign exchange and foreign trade laws. * TOSHIBA products should not be embedded to the downstream products which are prohibited to be produced and sold, under any law and regulations.
71
2005-04-20


▲Up To Search▲   

 
Price & Availability of TC9327BFG

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X